Xbasic

STATUSBAR.ROBOT Function

Syntax

.Robot()

Description

The STATUSBAR.ROBOT() method displays a broken line bar graph on the Status Bar indicating that a task is being performed. The broken line grows until it reaches the end of its display area on the Status Bar, and then it restarts. Use this method when you do not know the total number of iterations in a task. If you do know how many iterations a task has, use the STATUSBAR.PERCENT() method instead.

Example

Displays the robot on the Status Bar to indicate that a task is being performed.

tbl = table.open("c:\a5\a_sports\customer")
tbl.fetch_first()
while .not. tbl.fetch_eof()
    tbl.fetch_next()
    statusbar.robot()
    'Put in code that does something to each record here
end while
statusbar.clear()

Limitations

Desktop applications only.

See Also